package def;


public class Protein extends Argument{
//	public String fileId = null;
	public String pid = null; // supposedly equal to tspan.tid
	public Protein(){
		
	}
	
	@Override public void setTspan(TSpan ts){
		this.tspan = ts;
		pid = ts.tid;
	}
	
	@Override
	public String getId() {
		return pid;
	}

	@Override public String toString(){
		return "[Protein]"+tspan.toString();
	}
	
	@Override public boolean equals(Object obj){
		if (obj instanceof Protein){
			Protein p = (Protein) obj;
			if (tspan.equals(p.tspan)){
//				System.out.println("compare here");
				return true;
			}
			else{
//				System.out.println("compare there");
				return false;
			}
		}
		else{
			return false;
		}
	}
	
	@Override public int hashCode(){
		return tspan.hashCode();
	}
//	public void parse(String line) {
//		
//	}
}
